package com.binarysoft.service.common.job;

import java.util.Collection;

import common.framework.dsb.DynamicService;

public interface JobService extends DynamicService {

	/**
	 * 获取job配置,包括name, group, cron_exp, job_class信息
	 * 
	 * @return
	 * @throws Exception
	 */
	Collection<JobConfig> getJobConfigs() throws Exception;

	/**
	 * 立即启动job的执行(job class 必须实现 org.quartz.Job接口)
	 * 
	 * @param jobName
	 * @throws Exception
	 */
	boolean fireJob(String jobName) throws Exception;
}